<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[title_en]" type="text" value="{$row.title_en|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="35" name="row[logo]" type="text" value="{$row.logo}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control" name="row[description]">{$row.description|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-price" class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="row[price_cn]" type="number" value="{$row.price_cn}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-usd_price" class="control-label col-xs-12 col-sm-2">{:__('UsdPrice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-usd_price" class="form-control" name="row[price_usd]" type="number" value="{$row.price_usd}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('WithdrawType')}:</label>
        <div class="col-xs-12 col-sm-4">
            {$withdrawType}
        </div>
    </div>
    <div class="form-group">
        <label for="c-withdraw" class="control-label col-xs-12 col-sm-2">{:__('WithdrawFee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-withdraw" class="form-control" name="row[withdraw_fee]" type="number" value="{$row.withdraw_fee}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-transfer" class="control-label col-xs-12 col-sm-2">{:__('TransferFee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transfer" class="form-control" name="row[transfer_fee]" type="number" value="{$row.transfer_fee}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-min_withdraw" class="control-label col-xs-12 col-sm-2">{:__('MinWithdraw')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min_withdraw" class="form-control" name="row[min_withdraw]" type="number" value="{$row.min_withdraw}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-max_withdraw" class="control-label col-xs-12 col-sm-2">{:__('MaxWithdraw')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max_withdraw" class="form-control" name="row[max_withdraw]" type="number" value="{$row.max_withdraw}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-collection_address" class="control-label col-xs-12 col-sm-2">{:__('CollectionAddress')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-collection_address" class="form-control" name="row[collection_address]" type="text" value="{$row.collection_address}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
